3.1.45 \(\int \cos (c+d x) (a+a \sin (c+d x))^8 \, dx\) [45]

Optimal. Leaf size=22 \[ \frac {(a+a \sin (c+d x))^9}{9 a d} \]

[Out]

1/9*(a+a*sin(d*x+c))^9/a/d

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2746, 32} \begin {gather*} \frac {(a \sin (c+d x)+a)^9}{9 a d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cos[c + d*x]*(a + a*Sin[c + d*x])^8,x]

[Out]

(a + a*Sin[c + d*x])^9/(9*a*d)

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rule 2746

Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(b^p*f), S
ubst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x]
&& IntegerQ[(p - 1)/2] && EqQ[a^2 - b^2, 0] && (GeQ[p, -1] ||  !IntegerQ[m + 1/2])

Rubi steps

\begin {align*} \int \cos (c+d x) (a+a \sin (c+d x))^8 \, dx &=\frac {\text {Subst}\left (\int (a+x)^8 \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac {(a+a \sin (c+d x))^9}{9 a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(97\) vs. \(2(22)=44\).
time = 0.85, size = 97, normalized size = 4.41 \begin {gather*} \frac {a^8 (-31824 \cos (2 (c+d x))+8568 \cos (4 (c+d x))-816 \cos (6 (c+d x))+18 \cos (8 (c+d x))+43758 \sin (c+d x)-18564 \sin (3 (c+d x))+3060 \sin (5 (c+d x))-153 \sin (7 (c+d x))+\sin (9 (c+d x)))}{2304 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cos[c + d*x]*(a + a*Sin[c + d*x])^8,x]

[Out]

(a^8*(-31824*Cos[2*(c + d*x)] + 8568*Cos[4*(c + d*x)] - 816*Cos[6*(c + d*x)] + 18*Cos[8*(c + d*x)] + 43758*Sin
[c + d*x] - 18564*Sin[3*(c + d*x)] + 3060*Sin[5*(c + d*x)] - 153*Sin[7*(c + d*x)] + Sin[9*(c + d*x)]))/(2304*d
)

________________________________________________________________________________________

Maple [A]
time = 0.34, size = 21, normalized size = 0.95

method result size
derivativedivides \(\frac {\left (a +a \sin \left (d x +c \right )\right )^{9}}{9 d a}\) \(21\)
default \(\frac {\left (a +a \sin \left (d x +c \right )\right )^{9}}{9 d a}\) \(21\)
risch \(\frac {2431 a^{8} \sin \left (d x +c \right )}{128 d}+\frac {a^{8} \sin \left (9 d x +9 c \right )}{2304 d}+\frac {a^{8} \cos \left (8 d x +8 c \right )}{128 d}-\frac {17 a^{8} \sin \left (7 d x +7 c \right )}{256 d}-\frac {17 a^{8} \cos \left (6 d x +6 c \right )}{48 d}+\frac {85 a^{8} \sin \left (5 d x +5 c \right )}{64 d}+\frac {119 a^{8} \cos \left (4 d x +4 c \right )}{32 d}-\frac {1547 a^{8} \sin \left (3 d x +3 c \right )}{192 d}-\frac {221 a^{8} \cos \left (2 d x +2 c \right )}{16 d}\) \(152\)
norman \(\frac {\frac {16 a^{8} \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {16 a^{8} \left (\tan ^{16}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {2 a^{8} \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}+\frac {272 a^{8} \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {952 a^{8} \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {3536 a^{8} \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {48620 a^{8} \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{9 d}+\frac {3536 a^{8} \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {952 a^{8} \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {272 a^{8} \left (\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {2 a^{8} \left (\tan ^{17}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {336 a^{8} \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {336 a^{8} \left (\tan ^{14}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {6160 a^{8} \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {6160 a^{8} \left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3 d}+\frac {4848 a^{8} \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}+\frac {4848 a^{8} \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{d}}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{9}}\) \(339\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)*(a+a*sin(d*x+c))^8,x,method=_RETURNVERBOSE)

[Out]

1/9*(a+a*sin(d*x+c))^9/d/a

________________________________________________________________________________________

Maxima [A]
time = 0.31, size = 20, normalized size = 0.91 \begin {gather*} \frac {{\left (a \sin \left (d x + c\right ) + a\right )}^{9}}{9 \, a d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(a+a*sin(d*x+c))^8,x, algorithm="maxima")

[Out]

1/9*(a*sin(d*x + c) + a)^9/(a*d)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 122 vs. \(2 (20) = 40\).
time = 0.36, size = 122, normalized size = 5.55 \begin {gather*} \frac {9 \, a^{8} \cos \left (d x + c\right )^{8} - 120 \, a^{8} \cos \left (d x + c\right )^{6} + 432 \, a^{8} \cos \left (d x + c\right )^{4} - 576 \, a^{8} \cos \left (d x + c\right )^{2} + {\left (a^{8} \cos \left (d x + c\right )^{8} - 40 \, a^{8} \cos \left (d x + c\right )^{6} + 240 \, a^{8} \cos \left (d x + c\right )^{4} - 448 \, a^{8} \cos \left (d x + c\right )^{2} + 256 \, a^{8}\right )} \sin \left (d x + c\right )}{9 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(a+a*sin(d*x+c))^8,x, algorithm="fricas")

[Out]

1/9*(9*a^8*cos(d*x + c)^8 - 120*a^8*cos(d*x + c)^6 + 432*a^8*cos(d*x + c)^4 - 576*a^8*cos(d*x + c)^2 + (a^8*co
s(d*x + c)^8 - 40*a^8*cos(d*x + c)^6 + 240*a^8*cos(d*x + c)^4 - 448*a^8*cos(d*x + c)^2 + 256*a^8)*sin(d*x + c)
)/d

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 148 vs. \(2 (15) = 30\).
time = 1.37, size = 148, normalized size = 6.73 \begin {gather*} \begin {cases} \frac {a^{8} \sin ^{9}{\left (c + d x \right )}}{9 d} + \frac {a^{8} \sin ^{8}{\left (c + d x \right )}}{d} + \frac {4 a^{8} \sin ^{7}{\left (c + d x \right )}}{d} + \frac {28 a^{8} \sin ^{6}{\left (c + d x \right )}}{3 d} + \frac {14 a^{8} \sin ^{5}{\left (c + d x \right )}}{d} + \frac {14 a^{8} \sin ^{4}{\left (c + d x \right )}}{d} + \frac {28 a^{8} \sin ^{3}{\left (c + d x \right )}}{3 d} + \frac {4 a^{8} \sin ^{2}{\left (c + d x \right )}}{d} + \frac {a^{8} \sin {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\x \left (a \sin {\left (c \right )} + a\right )^{8} \cos {\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(a+a*sin(d*x+c))**8,x)

[Out]

Piecewise((a**8*sin(c + d*x)**9/(9*d) + a**8*sin(c + d*x)**8/d + 4*a**8*sin(c + d*x)**7/d + 28*a**8*sin(c + d*
x)**6/(3*d) + 14*a**8*sin(c + d*x)**5/d + 14*a**8*sin(c + d*x)**4/d + 28*a**8*sin(c + d*x)**3/(3*d) + 4*a**8*s
in(c + d*x)**2/d + a**8*sin(c + d*x)/d, Ne(d, 0)), (x*(a*sin(c) + a)**8*cos(c), True))

________________________________________________________________________________________

Giac [A]
time = 5.06, size = 20, normalized size = 0.91 \begin {gather*} \frac {{\left (a \sin \left (d x + c\right ) + a\right )}^{9}}{9 \, a d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(a+a*sin(d*x+c))^8,x, algorithm="giac")

[Out]

1/9*(a*sin(d*x + c) + a)^9/(a*d)

________________________________________________________________________________________

Mupad [B]
time = 4.75, size = 118, normalized size = 5.36 \begin {gather*} \frac {\frac {a^8\,{\sin \left (c+d\,x\right )}^9}{9}+a^8\,{\sin \left (c+d\,x\right )}^8+4\,a^8\,{\sin \left (c+d\,x\right )}^7+\frac {28\,a^8\,{\sin \left (c+d\,x\right )}^6}{3}+14\,a^8\,{\sin \left (c+d\,x\right )}^5+14\,a^8\,{\sin \left (c+d\,x\right )}^4+\frac {28\,a^8\,{\sin \left (c+d\,x\right )}^3}{3}+4\,a^8\,{\sin \left (c+d\,x\right )}^2+a^8\,\sin \left (c+d\,x\right )}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)*(a + a*sin(c + d*x))^8,x)

[Out]

(a^8*sin(c + d*x) + 4*a^8*sin(c + d*x)^2 + (28*a^8*sin(c + d*x)^3)/3 + 14*a^8*sin(c + d*x)^4 + 14*a^8*sin(c +
d*x)^5 + (28*a^8*sin(c + d*x)^6)/3 + 4*a^8*sin(c + d*x)^7 + a^8*sin(c + d*x)^8 + (a^8*sin(c + d*x)^9)/9)/d

________________________________________________________________________________________